import { defineComponent,reactive,watch } from 'vue'

export default defineComponent({
  props: {
    visible: {
      type: Boolean,
      default: false
    }
  },
  emits: [],
  components: {},
  setup (props, ctx) {
    const data = reactive({
      visible:false
    })
    watch(
      () => props.visible,
      (val) => {
        data.visible = val
      }
    )
    return () => (
      <>
        <el-dialog
          v-model={data.visible}
          title="添加数据模型"
        ></el-dialog>
      </>
    )
  }
})
